package com.func.upload.param;

import com.alibaba.fastjson.JSON;
import com.func.upload.util.StringUtil;

import java.util.Map;

/**
 * Created by txliu on 2019/9/5.
 */
public class RequestParam {

    private String url;

    private Map<String, String> headers;

    private Map<String, String> params;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Map<String, String> getHeaders() {
        return headers;
    }

    public void setHeaders(Map<String, String> headers) {
        this.headers = headers;
    }

    public Map<String, String> getParams() {
        return params;
    }

    public void setParams(Map<String, String> params) {
        this.params = params;
    }

    public String getParamJson(){
        if(params == null){
            return "";
        }
        return JSON.toJSONString(params);
    }
}
